Optimal. Leaf size=84 \[ \frac {(A b+2 a B) \sqrt {a+b x^2}}{2 a}-\frac {A \left (a+b x^2\right )^{3/2}}{2 a x^2}-\frac {(A b+2 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{2 \sqrt {a}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {457, 79, 52, 65,
214} \begin {gather*} \frac {\sqrt {a+b x^2} (2 a B+A b)}{2 a}-\frac {(2 a B+A b) \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{2 \sqrt {a}}-\frac {A \left (a+b x^2\right )^{3/2}}{2 a x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 79
Rule 214
Rule 457
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{x^3} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\sqrt {a+b x} (A+B x)}{x^2} \, dx,x,x^2\right )\\ &=-\frac {A \left (a+b x^2\right )^{3/2}}{2 a x^2}+\frac {(A b+2 a B) \text {Subst}\left (\int \frac {\sqrt {a+b x}}{x} \, dx,x,x^2\right )}{4 a}\\ &=\frac {(A b+2 a B) \sqrt {a+b x^2}}{2 a}-\frac {A \left (a+b x^2\right )^{3/2}}{2 a x^2}+\frac {1}{4} (A b+2 a B) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,x^2\right )\\ &=\frac {(A b+2 a B) \sqrt {a+b x^2}}{2 a}-\frac {A \left (a+b x^2\right )^{3/2}}{2 a x^2}+\frac {(A b+2 a B) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^2}\right )}{2 b}\\ &=\frac {(A b+2 a B) \sqrt {a+b x^2}}{2 a}-\frac {A \left (a+b x^2\right )^{3/2}}{2 a x^2}-\frac {(A b+2 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{2 \sqrt {a}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 65, normalized size = 0.77 \begin {gather*} \frac {\sqrt {a+b x^2} \left (-A+2 B x^2\right )}{2 x^2}+\frac {(-A b-2 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{2 \sqrt {a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 106, normalized size = 1.26
method | result | size |
risch | \(-\frac {A \sqrt {b \,x^{2}+a}}{2 x^{2}}+B \sqrt {b \,x^{2}+a}-\frac {\ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right ) A b}{2 \sqrt {a}}-\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right ) B\) | \(87\) |
default | \(A \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {3}{2}}}{2 a \,x^{2}}+\frac {b \left (\sqrt {b \,x^{2}+a}-\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )\right )}{2 a}\right )+B \left (\sqrt {b \,x^{2}+a}-\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )\right )\) | \(106\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 83, normalized size = 0.99 \begin {gather*} -B \sqrt {a} \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right ) - \frac {A b \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right )}{2 \, \sqrt {a}} + \sqrt {b x^{2} + a} B + \frac {\sqrt {b x^{2} + a} A b}{2 \, a} - \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} A}{2 \, a x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.18, size = 141, normalized size = 1.68 \begin {gather*} \left [\frac {{\left (2 \, B a + A b\right )} \sqrt {a} x^{2} \log \left (-\frac {b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) + 2 \, {\left (2 \, B a x^{2} - A a\right )} \sqrt {b x^{2} + a}}{4 \, a x^{2}}, \frac {{\left (2 \, B a + A b\right )} \sqrt {-a} x^{2} \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) + {\left (2 \, B a x^{2} - A a\right )} \sqrt {b x^{2} + a}}{2 \, a x^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 15.65, size = 107, normalized size = 1.27 \begin {gather*} - \frac {A \sqrt {b} \sqrt {\frac {a}{b x^{2}} + 1}}{2 x} - \frac {A b \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} x} \right )}}{2 \sqrt {a}} - B \sqrt {a} \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} x} \right )} + \frac {B a}{\sqrt {b} x \sqrt {\frac {a}{b x^{2}} + 1}} + \frac {B \sqrt {b} x}{\sqrt {\frac {a}{b x^{2}} + 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.36, size = 68, normalized size = 0.81 \begin {gather*} \frac {2 \, \sqrt {b x^{2} + a} B b + \frac {{\left (2 \, B a b + A b^{2}\right )} \arctan \left (\frac {\sqrt {b x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} - \frac {\sqrt {b x^{2} + a} A b}{x^{2}}}{2 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.62, size = 68, normalized size = 0.81 \begin {gather*} B\,\sqrt {b\,x^2+a}-\frac {A\,\sqrt {b\,x^2+a}}{2\,x^2}-B\,\sqrt {a}\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )-\frac {A\,b\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )}{2\,\sqrt {a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________